function y = cragglvy(x)
%CRAGGLVY function
%x0=[1,2,...2]
n=length(x);
l=n/2;m=l-1;
y=0;
for i=1:m
    y=y+(exp(x(2*i-1))-x(2*i))^4+100*(x(2*i)-x(2*i+1))^6;
    y=y+(tan(x(2*i+1)-x(2*i+2))+(x(2*i+1)-x(2*i+2)))^4;
    y=y+(x(2*i-1))^8+(x(2*i+2)-1)^2;
end

